<? $attributes = array('class' => 'email', 'id' => 'checknew');
    echo form_open('tuvan/dels', $attributes);?>
<table class="admindata" width="100%">
    <thead>
        <tr>
            <th colspan="6"> <input type="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
                Hiện có
                <?=$num?>
                bài viết
                <?=$pagination?>
            </th>
        </tr>
        <tr>
            <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
            <th>Hình ảnh</th>
            <th>Người gởi</th>
            <th>Nội dung</th>
            <th class="publish">Ngày gởi</th>
            <th class="publish">Chức năng</th>
        </tr>
    </thead>
    <?
        $k=1;
        $i=1;
		
        foreach($list as $rs):
			//$content= !empty($rs->content_vn) ? $rs->content_vn : $rs->content_vn;
			//$lb_content = str_limit($content,200);
			$lb_image = !empty($rs->lb_image)  ? '<img src="'.base_url_site().'uploads/tuvan/'.$rs->lb_image.'" width="120px" />' : '';
			$bold = empty($rs->is_read)? 'bold' : '' ;
        ?>            
        <tr class="row<?=$k?> <?=$bold?>">
            <td><input type="checkbox" name="ar_id[]" value="<?=$rs->id?>"></td>
            <td><?=$lb_image?></td>
            <td><?=$rs->cusname?><br /><?=$rs->cusmail?><br /></td>
            <td><?=$rs->name_vn?><br /><?=$rs->question_vn?></td>
            <td align="center"><?=datevn($rs->dt_create)?></td>
            <td align="center">
                <?=icon_edit('tuvan/edit/'.$rs->id)?>
                <?//=icon_view('tuvan/view/'.$rs->id)?>
                <span id="publish<?=$rs->id?>"> <?=icon_active("'tuvan'","'id'",$rs->id,$rs->bl_active)?> </span>
                <?=icon_del('tuvan/del/'.$rs->id.'/'.$start)?>
            </td>
        </tr>
	<?
        $k=1-$k;
        $i++;
        endforeach;
	?>
    <tfoot>
    <td colspan="6"><input type="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
    Hiện có  <?=$num?> bài viết <?=$pagination?></td>
    </tfoot>
</table>
<?=form_close()?>